package com.kim.smartring.activity.fragment;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.kim.smartring.R;

/**
 * 个人信息页
 * 
 */

public class PersonInfoFragment extends BaseFragment {
	private ImageView img_menu;
	private ImageView img_head;
	private Button btn_name;
	private LinearLayout ll_sex;
	private LinearLayout ll_height;
	private LinearLayout ll_weight;
	private LinearLayout ll_birdth;
	private TextView txv_sex;
	private TextView txv_height;
	private TextView txv_weight;
	private TextView txv_birdth;

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View v = inflater.inflate(R.layout.person_info_layout, null);

		img_menu = (ImageView) v.findViewById(R.id.img_menu);
		img_head = (ImageView) v.findViewById(R.id.img_head);
		btn_name = (Button) v.findViewById(R.id.btn_name);

		ll_sex = (LinearLayout) v.findViewById(R.id.ll_sex);
		ll_height = (LinearLayout) v.findViewById(R.id.ll_height);
		ll_weight = (LinearLayout) v.findViewById(R.id.ll_weight);
		ll_birdth = (LinearLayout) v.findViewById(R.id.ll_birth);

		txv_sex = (TextView) v.findViewById(R.id.txv_sex);
		txv_height = (TextView) v.findViewById(R.id.txv_height);
		txv_weight = (TextView) v.findViewById(R.id.txv_weight);
		txv_birdth = (TextView) v.findViewById(R.id.txv_birth);

		img_menu.setOnClickListener(this);
		img_head.setOnClickListener(this);
		btn_name.setOnClickListener(this);
		ll_sex.setOnClickListener(this);
		ll_height.setOnClickListener(this);
		ll_weight.setOnClickListener(this);
		ll_birdth.setOnClickListener(this);
		return v;
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.img_menu:
			showSlidingMenu();
			break;
		case R.id.img_head:

			break;
		case R.id.btn_name:

			break;
		case R.id.ll_sex:

			break;
		case R.id.ll_height:

			break;
		case R.id.ll_weight:

			break;
		case R.id.ll_birth:

			break;
		default:
			break;
		}
	}

}
